Skip to content

[3.6] bpo-27340: Use memoryview in SSLSocket.sendall() (GH-3384)#3434

Merged
tiran merged 1 commit into
python:3.6from
tiran:backport-888bbdc-3.6
Sep 7, 2017
Merged

[3.6] bpo-27340: Use memoryview in SSLSocket.sendall() (GH-3384)#3434
tiran merged 1 commit into
python:3.6from
tiran:backport-888bbdc-3.6

Conversation

@tiran
Copy link
Copy Markdown
Member

@tiran tiran commented Sep 7, 2017

  • bpo-27340: Use memoryview in SSLSocket.sendall()

SSLSocket.sendall() now uses memoryview to create slices of data. This fix
support for all bytes-like object. It is also more efficient and avoids
costly copies.

Signed-off-by: Christian Heimes christian@python.org

  • Cast view to bytes, fix typo

Signed-off-by: Christian Heimes christian@python.org.
(cherry picked from commit 888bbdc)

https://bugs.python.org/issue27340

* bpo-27340: Use memoryview in SSLSocket.sendall()

SSLSocket.sendall() now uses memoryview to create slices of data. This fix
support for all bytes-like object. It is also more efficient and avoids
costly copies.

Signed-off-by: Christian Heimes <christian@python.org>

* Cast view to bytes, fix typo

Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 888bbdc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants